﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.OrderSpecificServiceRecord
{
	/// <summary>
	/// 订单特殊服务记录
	/// </summary>
	public class OrderSpecificServiceRecordRequestDto
	{
		/// <summary>
		/// 订单Id
		/// </summary>		
		[Display(Name = "订单Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long OrderId { get; set; }
		/// <summary>
		/// 订单编号
		/// </summary>		
		[Display(Name = "订单编号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string OrderNo { get; set; }
		/// <summary>
		/// 运输特殊服务费配置Id
		/// </summary>		
		[Display(Name = "运输特殊服务费配置Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int TransportSpecificServiceConfigId { get; set; }
        /// <summary>
        /// 特殊服务类型
        /// </summary>            
        [Display(Name = "特殊服务类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string SpecificServiceType { get; set; }

        /// <summary>
        /// 服务标题
        /// </summary>            
        [Display(Name = "服务标题")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ServiceTitle { get; set; }

        /// <summary>
        /// 有备注
        /// </summary>            
        [Display(Name = "有备注")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool HasRemark { get; set; }

        /// <summary>
        /// 服务备注
        /// </summary>            
        [Display(Name = "服务备注")]
        public string ServiceRemark { get; set; }

        /// <summary>
        /// 服务费金额
        /// </summary>            
        [Display(Name = "服务费金额")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal ServiceAmount { get; set; }

        /// <summary>
        /// 有单位
        /// </summary>            
        [Display(Name = "有单位")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool HasUnit { get; set; }

        /// <summary>
        /// 服务单位
        /// </summary>            
        [Display(Name = "服务单位")]
        public string ServiceUnit { get; set; }
    }
}

